<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>体验Vue</title>
    <script type="text/javascript" src="../lib/vue/dist/vue.js"></script>


</head>
<body>

<div id="app">
   <h1>{{ msg }}</h1>
    <p>{{ msg1 }}</p>

    <h2>{{ msg2 }}</h2>
    <p>{{ 1>2 ? "真的" : "假的" }}</p>


</div>

<script>

    new Vue({

        el:"#app",
        template:'',
        data:function () {

            return{

                msg:"xingweixn",
                msg2:1==1,
                msg3: 1>2 ? "真的" : "假的",
                msg1:{name:"tom"}

            }
        }



    });


</script>



</body>
</html>